<?php
namespace App\Logics;

use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use App\Models\GoodsLeaseTermModel;

//逻辑处理
class GoodsLeaseTermLogic extends BaseLogic {


    public function __construct()
    {
        parent::__construct();

    }


    public static function getListByGoodsLeaseId(int $goods_lease_id,$fields=['*']){
        $data= GoodsLeaseTermModel::where('goods_lease_id',$goods_lease_id)->select($fields)->get();
        return ob_to_array($data);
    }

    public static function getListByGoodsLeaseIds(array $goods_lease_ids,$fields=['*']){
        $data= GoodsLeaseTermModel::whereIn('goods_lease_id',$goods_lease_ids)->select($fields)->get();
        return ob_to_array($data);
    }







}
